From 2062a3d147ea6123eb0aa2b010be6c662e58f291 Mon Sep 17 00:00:00 2001
From: mru <mru@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Date: Mon, 20 Jul 2009 22:30:24 +0000
Subject: [PATCH] ARM: check for VFP register arguments

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19474 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
---
 configure            |    6 ++++++
 libavcodec/arm/asm.S |    9 +++++++++
 2 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 7459215..d0c7096 100755
--- a/configure
+++ b/configure
@@ -917,6 +917,7 @@ HAVE_LIST="
     termios_h
     threads
     truncf
+    vfp_args
     winsock2_h
     yasm
 "
@@ -1866,6 +1867,11 @@ fi
 
 # check for assembler specific support
 
+enabled arm && check_ld <<EOF && enable vfp_args
+__asm__ (".eabi_attribute 28, 1");
+int main(void) { return 0; }
+EOF
+
 enabled ppc && check_asm dcbzl '"dcbzl 0, 1"'
 enabled ppc && check_asm ppc4xx '"maclhw r10, r11, r12"'
 
diff --git a/libavcodec/arm/asm.S b/libavcodec/arm/asm.S
index 69d8348..087b279 100644
--- a/libavcodec/arm/asm.S
+++ b/libavcodec/arm/asm.S
@@ -45,3 +45,12 @@
         ldr             \rd, =\val
 #endif
         .endm
+
+#if HAVE_VFP_ARGS
+        .eabi_attribute 28, 1
+#   define VFP
+#   define NOVFP @
+#else
+#   define VFP   @
+#   define NOVFP
+#endif
-- 
1.6.3.3

